--我即烈日(弃牌)
local wojilieri_discard = fk.CreateSkill {
    name = "mcdh_wojilieri_discard"
}


wojilieri_discard:addEffect("active",{
     card_filter = function(self,player,to_select, selected)
        return not player:prohibitDiscard(Fk:getCardById(to_select)) and #selected == 0
    end,
    target_filter = function(self,player, to_select, selected, cards)
        return false
    end,
    target_tip = function(self, player,to_select, selected, selected_cards, card, selectable, extra_data)
        if #selected_cards == 1 then
            local  id = to_select:getMark("wojilieri-tmp")
            if Fk:getCardById(id).suit == Fk:getCardById(selected_cards[1]).suit then
                return Fk:getCardById(id):toLogString()
            end
        end
    end,
})


return wojilieri_discard